package com.scrumtrek.trainings.tdd;

/**
 * Created with IntelliJ IDEA.
 * User: msuprunov
 * Date: 20.02.13
 * Time: 11:53
 * To change this template use File | Settings | File Templates.
 */
public class Book extends Item {
    private String author,
                   title,
                   publisher,
                   year;

    public Book(String author, String title) {
        this.author = author;
        this.title = title;
        this.publisher = null;
        this.year = null;
    }

    public Book(String author, String title, String publisher) {
        this.author = author;
        this.title = title;
        this.publisher = publisher;
        this.year = null;
    }

    public Book(String author, String title, String publisher, String year) {
        this.author = author;
        this.title = title;
        this.publisher = publisher;
        this.year = year;
    }

    public String getAuthor() {
        return author;
    }

    public String getTitle() {
        return title;
    }

    public String getPublisher() {
        return publisher;
    }

    public String getYear() {
        return year;
    }
}
